package com.bondar.interfaces;

public interface MyQueue
{
    /**
     * This method add element to tail of queue
     * @param element value to add.<br> 
     */
    public void offer (Object element);
    
    /**
     * This method get first element from queue without deleting
     * @return first element.<br>
     * If queue <b>empty</b> throw {@link NullPointerException}
     */
    public Object peek ();
    
    /**
     * This method get first element from queue and delete
     * @throws NullPointerException
     * @return first element from queue.<br>
     * If queue <b<empty</b> throw {@link NullPointerException}
     */
    public Object poll ();
}
